package com.youlian.cloud.user.dao;

import com.youlian.cloud.gateway.config.XmlGroupName;
import com.youlian.cloud.core.bean.PageModel;
import com.youlian.cloud.dao.IBaseDaoSupport;
import com.youlian.cloud.user.dao.entity.MenusEntity;

import java.util.List;

/**
 * @Auther: tangy
 * @Date: 2018/11/14 14:10
 * @email tangy@elab-plus.com
 * @Description:
 */
@XmlGroupName("menus")
public interface IMenusDao extends IBaseDaoSupport<MenusEntity> {

    /**
     * 功能描述：查询菜单信息
     * @auther tangy
     * @param entity 用于查询菜单数据对象
     * @return 返回菜单信息
     * @date  2018/11/14 15:39
     * @throws Exception
     */
    PageModel<MenusEntity> queryMenus(PageModel page, MenusEntity entity) throws Exception;

    /**
     * 功能描述：获取菜单树
     * @auther tangy
     * @param entity 用于获取菜单树数据对象
     * @return 返回获取菜单树
     * @date  2018/11/15 15:52
     * @throws Exception
     */
    List<MenusEntity> queryMenusTree(MenusEntity entity) throws Exception;
}
